package cn.tedu.mintmall.mapper;

import cn.tedu.mintmall.dto.AddressUpdateDTO;
import cn.tedu.mintmall.entity.Address;
import cn.tedu.mintmall.vo.AddressVO;
import org.springframework.stereotype.Repository;

@Repository
public interface AddressMapper {

    //1. 新增地址
    int insertAddress(Address address);

    //2. 删除地址通过用户id
    int deleteAddress(Long userId);

    //3. 根据联系人修改地址
    int updateAddress(AddressUpdateDTO addressUpdateDTO);

    //4. 根据联系人查看地址
    AddressVO selectAddressByContactName(String contactName);


}
